package com.qumitech.visualnovel.datasource.console;

import com.qumitech.visualnovel.model.dao.console.SysPermission;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by Edison.hu on 18/7/25.
 */
@Component
public interface SysPermissionMapper {
    //根据角色ID查询角色对应的权限信息
    List<SysPermission> findPermissionByRoleId(@Param("roleId") Integer roleId);

    //根据父节点ID查找对应的权限
    List<SysPermission> getSysPermissionListByParentId(@Param("parentId") int parentId);

}

